<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>GrPPI: patterns.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.svg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">GrPPI
   &#160;<span id="projectnumber">0.3.1</span>
   </div>
   <div id="projectbrief">Generic and Reusable Parallel Pattern Interface</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_0966d06610f72609fd9aa4979c2b5a92.html">common</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">patterns.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="patterns_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">* @version    GrPPI v0.2</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">* @copyright    Copyright (C) 2017 Universidad Carlos III de Madrid. All rights reserved.</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">* @license    GNU/GPL, see LICENSE.txt</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">* This program is free software: you can redistribute it and/or modify</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">* it under the terms of the GNU General Public License as published by</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">* the Free Software Foundation, either version 3 of the License, or</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">* (at your option) any later version.</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">*</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">* This program is distributed in the hope that it will be useful,</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">* but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">* GNU General Public License for more details.</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">*</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">* You have received a copy of the GNU General Public License in LICENSE.txt</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">* also available in &lt;http://www.gnu.org/licenses/gpl.html&gt;.</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">*</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">* See COPYRIGHT.txt for copyright notices and details.</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#ifndef GRPPI_COMMON_PATTERNS_H</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#define GRPPI_COMMON_PATTERNS_H</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;tuple&gt;</span> </div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;type_traits&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="callable__traits_8h.html">callable_traits.h</a>&quot;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="farm__pattern_8h.html">farm_pattern.h</a>&quot;</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="filter__pattern_8h.html">filter_pattern.h</a>&quot;</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="pipeline__pattern_8h.html">pipeline_pattern.h</a>&quot;</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="reduce__pattern_8h.html">reduce_pattern.h</a>&quot;</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="iteration__pattern_8h.html">iteration_pattern.h</a>&quot;</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="common_2context_8h.html">context.h</a>&quot;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacegrppi.html">grppi</a>{</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> E,<span class="keyword">typename</span> Stage, <span class="keyword">typename</span> ... Stages&gt;</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classgrppi_1_1pipeline__info.html">   38</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgrppi_1_1pipeline__info.html">pipeline_info</a>{</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;   <span class="keyword">public</span>:</div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classgrppi_1_1pipeline__info.html#a600ef5ecf6c7304f114d5c0df83a240d">   40</a></span>&#160;      E &amp; <a class="code" href="classgrppi_1_1pipeline__info.html#a600ef5ecf6c7304f114d5c0df83a240d">exectype</a>;</div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classgrppi_1_1pipeline__info.html#a4e063c3a9ea8b3bfe678acda47e7a29d">   41</a></span>&#160;      std::tuple&lt;Stage , Stages ...&gt; <a class="code" href="classgrppi_1_1pipeline__info.html#a4e063c3a9ea8b3bfe678acda47e7a29d">stages</a>;</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classgrppi_1_1pipeline__info.html#a2c34b3739dd4e340384b9fc1756ac8b7">   42</a></span>&#160;      <a class="code" href="classgrppi_1_1pipeline__info.html#a2c34b3739dd4e340384b9fc1756ac8b7">pipeline_info</a>(E &amp;p, Stage s, Stages ... sts) : exectype{p}, <a class="code" href="classgrppi_1_1pipeline__info.html#a4e063c3a9ea8b3bfe678acda47e7a29d">stages</a>{std::make_tuple(s, sts...)} {}</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classgrppi_1_1pipeline__info.html#a62a35fb823d6a655a1c53ce2365b28e3">   43</a></span>&#160;      <a class="code" href="classgrppi_1_1pipeline__info.html#a62a35fb823d6a655a1c53ce2365b28e3">pipeline_info</a>(E &amp;p, std::tuple&lt;Stage,Stages ...&gt; st) : exectype{p} , <a class="code" href="classgrppi_1_1pipeline__info.html#a4e063c3a9ea8b3bfe678acda47e7a29d">stages</a>{st} {}</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;};</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> E,<span class="keyword">class</span> Combiner, <span class="keyword">typename</span> Identity&gt;</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classgrppi_1_1reduction__info.html">   47</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgrppi_1_1reduction__info.html">reduction_info</a></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;{</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;   <span class="keyword">public</span>:</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classgrppi_1_1reduction__info.html#a1627086719a4da5db2574e861463a6d7">   50</a></span>&#160;      Combiner <a class="code" href="classgrppi_1_1reduction__info.html#a1627086719a4da5db2574e861463a6d7">combine_op</a>;</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classgrppi_1_1reduction__info.html#a72a3c34fbc9c966be8e78dfcf45614e7">   51</a></span>&#160;      <span class="keywordtype">int</span> <a class="code" href="classgrppi_1_1reduction__info.html#a72a3c34fbc9c966be8e78dfcf45614e7">window_size</a>;</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classgrppi_1_1reduction__info.html#aa40270272892d41c235782be4784f45b">   52</a></span>&#160;      <span class="keywordtype">int</span> <a class="code" href="classgrppi_1_1reduction__info.html#aa40270272892d41c235782be4784f45b">offset</a>;</div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classgrppi_1_1reduction__info.html#a71e446d1408219e59d56526c3ff53484">   53</a></span>&#160;      Identity <a class="code" href="classgrppi_1_1reduction__info.html#a71e446d1408219e59d56526c3ff53484">identity</a>;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classgrppi_1_1reduction__info.html#a9d8ad71d9b459ea8b72ecf6c276a2d22">   54</a></span>&#160;      E &amp; <a class="code" href="classgrppi_1_1reduction__info.html#a9d8ad71d9b459ea8b72ecf6c276a2d22">exectype</a>;</div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classgrppi_1_1reduction__info.html#aef31b1435e1378d78b39024fe98445ba">   55</a></span>&#160;      <a class="code" href="classgrppi_1_1reduction__info.html#aef31b1435e1378d78b39024fe98445ba">reduction_info</a>(E &amp;s,<span class="keywordtype">int</span> ws, <span class="keywordtype">int</span> off, Identity iden, Combiner comb) : </div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        exectype{s}, window_size{ws}, offset{off}, identity{iden}, combine_op{comb} {}</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;};</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> E,<span class="keyword">class</span> Operation&gt;</div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classgrppi_1_1farm__info.html">   60</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgrppi_1_1farm__info.html">farm_info</a></div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;{</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;   <span class="keyword">public</span>:</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classgrppi_1_1farm__info.html#a3aaf8f7cfd002fd5b7b21e2d8867f8e8">   63</a></span>&#160;      Operation  <a class="code" href="classgrppi_1_1farm__info.html#a3aaf8f7cfd002fd5b7b21e2d8867f8e8">task</a>;</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classgrppi_1_1farm__info.html#ac7fe7f445b3287e142f6f4ab1549f9f7">   64</a></span>&#160;      E &amp; <a class="code" href="classgrppi_1_1farm__info.html#ac7fe7f445b3287e142f6f4ab1549f9f7">exectype</a>;</div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classgrppi_1_1farm__info.html#a1910d41ce52c9729bd9c9d56f0acc682">   65</a></span>&#160;      <span class="keywordtype">int</span> <a class="code" href="classgrppi_1_1farm__info.html#a1910d41ce52c9729bd9c9d56f0acc682">farmtype</a>;</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classgrppi_1_1farm__info.html#a512e269d54eabcf4d7269625038369e5">   66</a></span>&#160;      <a class="code" href="classgrppi_1_1farm__info.html#a512e269d54eabcf4d7269625038369e5">farm_info</a>(E &amp;s,Operation  f) : task{f}, exectype{s}, farmtype{} {};</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;};</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> E,<span class="keyword">class</span> Operation&gt;</div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classgrppi_1_1filter__info.html">   70</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgrppi_1_1filter__info.html">filter_info</a></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;{</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;   <span class="keyword">public</span>:</div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classgrppi_1_1filter__info.html#ad319d54370baf53da492ba5d70c47086">   73</a></span>&#160;      Operation <a class="code" href="classgrppi_1_1filter__info.html#ad319d54370baf53da492ba5d70c47086">task</a>;</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classgrppi_1_1filter__info.html#ae5e8c84d30318ca84a58b1a34aa6a4a3">   74</a></span>&#160;      E &amp; <a class="code" href="classgrppi_1_1filter__info.html#ae5e8c84d30318ca84a58b1a34aa6a4a3">exectype</a>;</div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classgrppi_1_1filter__info.html#ad9dca029335b2da4d26bf09deca097b5">   75</a></span>&#160;      <span class="keywordtype">int</span> <a class="code" href="classgrppi_1_1filter__info.html#ad9dca029335b2da4d26bf09deca097b5">filtertype</a>;</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classgrppi_1_1filter__info.html#a8e14287dcfa6a69ea37b613c7f083240">   76</a></span>&#160;      <a class="code" href="classgrppi_1_1filter__info.html#a8e14287dcfa6a69ea37b613c7f083240">filter_info</a>(E &amp;s,Operation f) : task{f}, exectype{s}, filtertype{} {};</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;};</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="namespacegrppi.html#a1a507b16908e2fc55a42c444ce34602a">   80</a></span>&#160;constexpr <span class="keywordtype">bool</span> <a class="code" href="namespacegrppi.html#a1a507b16908e2fc55a42c444ce34602a">is_no_pattern</a> =</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;  !is_farm&lt;T&gt; &amp;&amp; </div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;  !is_filter&lt;T&gt; &amp;&amp; </div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;  !is_pipeline&lt;T&gt; &amp;&amp;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;  !is_reduce&lt;T&gt; &amp;&amp;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;  !is_iteration&lt;T&gt;&amp;&amp;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;  !is_context&lt;T&gt;;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="namespacegrppi.html#ab4dd11c6c8c471494aaa6ac02fbaa36d">   89</a></span>&#160;constexpr <span class="keywordtype">bool</span> <a class="code" href="namespacegrppi.html#ab4dd11c6c8c471494aaa6ac02fbaa36d">is_pattern</a> = !is_no_pattern&lt;T&gt;;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="namespacegrppi.html#aefc4ab6149586d62bcb16b97bcefdd0a">   92</a></span>&#160;<span class="keyword">using</span> <a class="code" href="namespacegrppi.html#aefc4ab6149586d62bcb16b97bcefdd0a">requires_no_pattern</a> = std::enable_if_t&lt;is_no_pattern&lt;T&gt;,<span class="keywordtype">int</span>&gt;;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="namespacegrppi.html#a44f8144ac6fb7f6ef3e5d73369b01a0a">   95</a></span>&#160;<span class="keyword">using</span> <a class="code" href="namespacegrppi.html#a44f8144ac6fb7f6ef3e5d73369b01a0a">requires_pattern</a> = std::enable_if_t&lt;is_pattern&lt;T&gt;, <span class="keywordtype">int</span>&gt;;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> return_type, <span class="keyword">typename</span> ... Ts&gt;</div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="structgrppi_1_1stage__return__type.html">  102</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structgrppi_1_1stage__return__type.html">stage_return_type</a>{</div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="structgrppi_1_1stage__return__type.html#a6b47b45a7d7664ac97fee040c220eea2">  103</a></span>&#160;  <span class="keyword">using</span> <a class="code" href="structgrppi_1_1stage__return__type.html#a6b47b45a7d7664ac97fee040c220eea2">type</a> = return_type;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;};</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Input, <span class="keyword">typename</span> Transformer&gt;</div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="namespacegrppi.html#a64dd705d0f32b64d20dba8d5b9cebbbe">  110</a></span>&#160;<span class="keyword">using</span> <a class="code" href="namespacegrppi.html#a64dd705d0f32b64d20dba8d5b9cebbbe">result_type</a> = <span class="keyword">typename</span> std::result_of&lt;Transformer(Input)&gt;::type; </div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Input, <span class="keyword">typename</span> Transformer&gt;</div><div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="structgrppi_1_1stage__return__type_3_01_input_00_01_transformer_01_4.html">  116</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structgrppi_1_1stage__return__type.html">stage_return_type</a>&lt;Input, Transformer&gt; {</div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="structgrppi_1_1stage__return__type_3_01_input_00_01_transformer_01_4.html#a1545c3f5f3db26340be3af7c0dbc8307">  117</a></span>&#160;  <span class="keyword">using</span> <a class="code" href="structgrppi_1_1stage__return__type_3_01_input_00_01_transformer_01_4.html#a1545c3f5f3db26340be3af7c0dbc8307">type</a> = <span class="keyword">typename</span> <a class="code" href="structgrppi_1_1stage__return__type.html">stage_return_type&lt; result_type&lt;Input,Transformer&gt;</a>&gt;<a class="code" href="structgrppi_1_1stage__return__type_3_01_input_00_01_transformer_01_4.html#a1545c3f5f3db26340be3af7c0dbc8307">::type</a>;       </div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;};</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Input, <span class="keyword">typename</span> Transformer, <span class="keyword">typename</span> ... Other&gt;</div><div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="structgrppi_1_1stage__return__type_3_01_input_00_01_transformer_00_01_other_8_8_8_01_4.html">  125</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structgrppi_1_1stage__return__type.html">stage_return_type</a>&lt;Input, Transformer, Other ...&gt; {</div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="structgrppi_1_1stage__return__type_3_01_input_00_01_transformer_00_01_other_8_8_8_01_4.html#afd989fa65a79db6fa9004d17f7b903e6">  126</a></span>&#160;  <span class="keyword">using</span> <a class="code" href="structgrppi_1_1stage__return__type_3_01_input_00_01_transformer_00_01_other_8_8_8_01_4.html#afd989fa65a79db6fa9004d17f7b903e6">type</a> = <span class="keyword">typename</span> <a class="code" href="structgrppi_1_1stage__return__type.html">stage_return_type&lt; result_type&lt;Input,Transformer&gt;</a> , Other...&gt;<a class="code" href="structgrppi_1_1stage__return__type_3_01_input_00_01_transformer_00_01_other_8_8_8_01_4.html#afd989fa65a79db6fa9004d17f7b903e6">::type</a>; </div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;};</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;} <span class="comment">// end namespace grppi</span></div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="namespacegrppi_html"><div class="ttname"><a href="namespacegrppi.html">grppi</a></div><div class="ttdef"><b>Definition:</b> callable_traits.h:26</div></div>
<div class="ttc" id="classgrppi_1_1farm__info_html_a3aaf8f7cfd002fd5b7b21e2d8867f8e8"><div class="ttname"><a href="classgrppi_1_1farm__info.html#a3aaf8f7cfd002fd5b7b21e2d8867f8e8">grppi::farm_info::task</a></div><div class="ttdeci">Operation task</div><div class="ttdef"><b>Definition:</b> patterns.h:63</div></div>
<div class="ttc" id="classgrppi_1_1filter__info_html"><div class="ttname"><a href="classgrppi_1_1filter__info.html">grppi::filter_info</a></div><div class="ttdef"><b>Definition:</b> patterns.h:70</div></div>
<div class="ttc" id="classgrppi_1_1farm__info_html_ac7fe7f445b3287e142f6f4ab1549f9f7"><div class="ttname"><a href="classgrppi_1_1farm__info.html#ac7fe7f445b3287e142f6f4ab1549f9f7">grppi::farm_info::exectype</a></div><div class="ttdeci">E &amp; exectype</div><div class="ttdef"><b>Definition:</b> patterns.h:64</div></div>
<div class="ttc" id="common_2context_8h_html"><div class="ttname"><a href="common_2context_8h.html">context.h</a></div></div>
<div class="ttc" id="classgrppi_1_1reduction__info_html"><div class="ttname"><a href="classgrppi_1_1reduction__info.html">grppi::reduction_info</a></div><div class="ttdef"><b>Definition:</b> patterns.h:47</div></div>
<div class="ttc" id="classgrppi_1_1reduction__info_html_a71e446d1408219e59d56526c3ff53484"><div class="ttname"><a href="classgrppi_1_1reduction__info.html#a71e446d1408219e59d56526c3ff53484">grppi::reduction_info::identity</a></div><div class="ttdeci">Identity identity</div><div class="ttdef"><b>Definition:</b> patterns.h:53</div></div>
<div class="ttc" id="classgrppi_1_1reduction__info_html_a1627086719a4da5db2574e861463a6d7"><div class="ttname"><a href="classgrppi_1_1reduction__info.html#a1627086719a4da5db2574e861463a6d7">grppi::reduction_info::combine_op</a></div><div class="ttdeci">Combiner combine_op</div><div class="ttdef"><b>Definition:</b> patterns.h:50</div></div>
<div class="ttc" id="iteration__pattern_8h_html"><div class="ttname"><a href="iteration__pattern_8h.html">iteration_pattern.h</a></div></div>
<div class="ttc" id="callable__traits_8h_html"><div class="ttname"><a href="callable__traits_8h.html">callable_traits.h</a></div></div>
<div class="ttc" id="classgrppi_1_1pipeline__info_html"><div class="ttname"><a href="classgrppi_1_1pipeline__info.html">grppi::pipeline_info</a></div><div class="ttdef"><b>Definition:</b> patterns.h:38</div></div>
<div class="ttc" id="namespacegrppi_html_a44f8144ac6fb7f6ef3e5d73369b01a0a"><div class="ttname"><a href="namespacegrppi.html#a44f8144ac6fb7f6ef3e5d73369b01a0a">grppi::requires_pattern</a></div><div class="ttdeci">std::enable_if_t&lt; is_pattern&lt; T &gt;, int &gt; requires_pattern</div><div class="ttdef"><b>Definition:</b> patterns.h:95</div></div>
<div class="ttc" id="classgrppi_1_1farm__info_html_a512e269d54eabcf4d7269625038369e5"><div class="ttname"><a href="classgrppi_1_1farm__info.html#a512e269d54eabcf4d7269625038369e5">grppi::farm_info::farm_info</a></div><div class="ttdeci">farm_info(E &amp;s, Operation f)</div><div class="ttdef"><b>Definition:</b> patterns.h:66</div></div>
<div class="ttc" id="classgrppi_1_1pipeline__info_html_a600ef5ecf6c7304f114d5c0df83a240d"><div class="ttname"><a href="classgrppi_1_1pipeline__info.html#a600ef5ecf6c7304f114d5c0df83a240d">grppi::pipeline_info::exectype</a></div><div class="ttdeci">E &amp; exectype</div><div class="ttdef"><b>Definition:</b> patterns.h:40</div></div>
<div class="ttc" id="structgrppi_1_1stage__return__type_html"><div class="ttname"><a href="structgrppi_1_1stage__return__type.html">grppi::stage_return_type</a></div><div class="ttdoc">Determines the return type after appliying a list of transformers (stages) on a input type...</div><div class="ttdef"><b>Definition:</b> patterns.h:102</div></div>
<div class="ttc" id="classgrppi_1_1pipeline__info_html_a4e063c3a9ea8b3bfe678acda47e7a29d"><div class="ttname"><a href="classgrppi_1_1pipeline__info.html#a4e063c3a9ea8b3bfe678acda47e7a29d">grppi::pipeline_info::stages</a></div><div class="ttdeci">std::tuple&lt; Stage, Stages... &gt; stages</div><div class="ttdef"><b>Definition:</b> patterns.h:41</div></div>
<div class="ttc" id="classgrppi_1_1filter__info_html_ae5e8c84d30318ca84a58b1a34aa6a4a3"><div class="ttname"><a href="classgrppi_1_1filter__info.html#ae5e8c84d30318ca84a58b1a34aa6a4a3">grppi::filter_info::exectype</a></div><div class="ttdeci">E &amp; exectype</div><div class="ttdef"><b>Definition:</b> patterns.h:74</div></div>
<div class="ttc" id="reduce__pattern_8h_html"><div class="ttname"><a href="reduce__pattern_8h.html">reduce_pattern.h</a></div></div>
<div class="ttc" id="namespacegrppi_html_aefc4ab6149586d62bcb16b97bcefdd0a"><div class="ttname"><a href="namespacegrppi.html#aefc4ab6149586d62bcb16b97bcefdd0a">grppi::requires_no_pattern</a></div><div class="ttdeci">std::enable_if_t&lt; is_no_pattern&lt; T &gt;, int &gt; requires_no_pattern</div><div class="ttdef"><b>Definition:</b> patterns.h:92</div></div>
<div class="ttc" id="namespacegrppi_html_ab4dd11c6c8c471494aaa6ac02fbaa36d"><div class="ttname"><a href="namespacegrppi.html#ab4dd11c6c8c471494aaa6ac02fbaa36d">grppi::is_pattern</a></div><div class="ttdeci">constexpr bool is_pattern</div><div class="ttdef"><b>Definition:</b> patterns.h:89</div></div>
<div class="ttc" id="farm__pattern_8h_html"><div class="ttname"><a href="farm__pattern_8h.html">farm_pattern.h</a></div></div>
<div class="ttc" id="classgrppi_1_1farm__info_html_a1910d41ce52c9729bd9c9d56f0acc682"><div class="ttname"><a href="classgrppi_1_1farm__info.html#a1910d41ce52c9729bd9c9d56f0acc682">grppi::farm_info::farmtype</a></div><div class="ttdeci">int farmtype</div><div class="ttdef"><b>Definition:</b> patterns.h:65</div></div>
<div class="ttc" id="structgrppi_1_1stage__return__type_html_a6b47b45a7d7664ac97fee040c220eea2"><div class="ttname"><a href="structgrppi_1_1stage__return__type.html#a6b47b45a7d7664ac97fee040c220eea2">grppi::stage_return_type::type</a></div><div class="ttdeci">return_type type</div><div class="ttdef"><b>Definition:</b> patterns.h:103</div></div>
<div class="ttc" id="namespacegrppi_html_a1a507b16908e2fc55a42c444ce34602a"><div class="ttname"><a href="namespacegrppi.html#a1a507b16908e2fc55a42c444ce34602a">grppi::is_no_pattern</a></div><div class="ttdeci">constexpr bool is_no_pattern</div><div class="ttdef"><b>Definition:</b> patterns.h:80</div></div>
<div class="ttc" id="classgrppi_1_1farm__info_html"><div class="ttname"><a href="classgrppi_1_1farm__info.html">grppi::farm_info</a></div><div class="ttdef"><b>Definition:</b> patterns.h:60</div></div>
<div class="ttc" id="classgrppi_1_1filter__info_html_ad9dca029335b2da4d26bf09deca097b5"><div class="ttname"><a href="classgrppi_1_1filter__info.html#ad9dca029335b2da4d26bf09deca097b5">grppi::filter_info::filtertype</a></div><div class="ttdeci">int filtertype</div><div class="ttdef"><b>Definition:</b> patterns.h:75</div></div>
<div class="ttc" id="filter__pattern_8h_html"><div class="ttname"><a href="filter__pattern_8h.html">filter_pattern.h</a></div></div>
<div class="ttc" id="structgrppi_1_1stage__return__type_3_01_input_00_01_transformer_01_4_html_a1545c3f5f3db26340be3af7c0dbc8307"><div class="ttname"><a href="structgrppi_1_1stage__return__type_3_01_input_00_01_transformer_01_4.html#a1545c3f5f3db26340be3af7c0dbc8307">grppi::stage_return_type&lt; Input, Transformer &gt;::type</a></div><div class="ttdeci">typename stage_return_type&lt; result_type&lt; Input, Transformer &gt;&gt;::type type</div><div class="ttdef"><b>Definition:</b> patterns.h:117</div></div>
<div class="ttc" id="classgrppi_1_1pipeline__info_html_a2c34b3739dd4e340384b9fc1756ac8b7"><div class="ttname"><a href="classgrppi_1_1pipeline__info.html#a2c34b3739dd4e340384b9fc1756ac8b7">grppi::pipeline_info::pipeline_info</a></div><div class="ttdeci">pipeline_info(E &amp;p, Stage s, Stages...sts)</div><div class="ttdef"><b>Definition:</b> patterns.h:42</div></div>
<div class="ttc" id="namespacegrppi_html_a64dd705d0f32b64d20dba8d5b9cebbbe"><div class="ttname"><a href="namespacegrppi.html#a64dd705d0f32b64d20dba8d5b9cebbbe">grppi::result_type</a></div><div class="ttdeci">typename std::result_of&lt; Transformer(Input)&gt;::type result_type</div><div class="ttdoc">Determines the return type of appliying a function on a input type. </div><div class="ttdef"><b>Definition:</b> patterns.h:110</div></div>
<div class="ttc" id="structgrppi_1_1stage__return__type_3_01_input_00_01_transformer_00_01_other_8_8_8_01_4_html_afd989fa65a79db6fa9004d17f7b903e6"><div class="ttname"><a href="structgrppi_1_1stage__return__type_3_01_input_00_01_transformer_00_01_other_8_8_8_01_4.html#afd989fa65a79db6fa9004d17f7b903e6">grppi::stage_return_type&lt; Input, Transformer, Other... &gt;::type</a></div><div class="ttdeci">typename stage_return_type&lt; result_type&lt; Input, Transformer &gt;, Other... &gt;::type type</div><div class="ttdef"><b>Definition:</b> patterns.h:126</div></div>
<div class="ttc" id="classgrppi_1_1reduction__info_html_a72a3c34fbc9c966be8e78dfcf45614e7"><div class="ttname"><a href="classgrppi_1_1reduction__info.html#a72a3c34fbc9c966be8e78dfcf45614e7">grppi::reduction_info::window_size</a></div><div class="ttdeci">int window_size</div><div class="ttdef"><b>Definition:</b> patterns.h:51</div></div>
<div class="ttc" id="classgrppi_1_1filter__info_html_a8e14287dcfa6a69ea37b613c7f083240"><div class="ttname"><a href="classgrppi_1_1filter__info.html#a8e14287dcfa6a69ea37b613c7f083240">grppi::filter_info::filter_info</a></div><div class="ttdeci">filter_info(E &amp;s, Operation f)</div><div class="ttdef"><b>Definition:</b> patterns.h:76</div></div>
<div class="ttc" id="classgrppi_1_1pipeline__info_html_a62a35fb823d6a655a1c53ce2365b28e3"><div class="ttname"><a href="classgrppi_1_1pipeline__info.html#a62a35fb823d6a655a1c53ce2365b28e3">grppi::pipeline_info::pipeline_info</a></div><div class="ttdeci">pipeline_info(E &amp;p, std::tuple&lt; Stage, Stages... &gt; st)</div><div class="ttdef"><b>Definition:</b> patterns.h:43</div></div>
<div class="ttc" id="classgrppi_1_1filter__info_html_ad319d54370baf53da492ba5d70c47086"><div class="ttname"><a href="classgrppi_1_1filter__info.html#ad319d54370baf53da492ba5d70c47086">grppi::filter_info::task</a></div><div class="ttdeci">Operation task</div><div class="ttdef"><b>Definition:</b> patterns.h:73</div></div>
<div class="ttc" id="classgrppi_1_1reduction__info_html_a9d8ad71d9b459ea8b72ecf6c276a2d22"><div class="ttname"><a href="classgrppi_1_1reduction__info.html#a9d8ad71d9b459ea8b72ecf6c276a2d22">grppi::reduction_info::exectype</a></div><div class="ttdeci">E &amp; exectype</div><div class="ttdef"><b>Definition:</b> patterns.h:54</div></div>
<div class="ttc" id="classgrppi_1_1reduction__info_html_aa40270272892d41c235782be4784f45b"><div class="ttname"><a href="classgrppi_1_1reduction__info.html#aa40270272892d41c235782be4784f45b">grppi::reduction_info::offset</a></div><div class="ttdeci">int offset</div><div class="ttdef"><b>Definition:</b> patterns.h:52</div></div>
<div class="ttc" id="pipeline__pattern_8h_html"><div class="ttname"><a href="pipeline__pattern_8h.html">pipeline_pattern.h</a></div></div>
<div class="ttc" id="classgrppi_1_1reduction__info_html_aef31b1435e1378d78b39024fe98445ba"><div class="ttname"><a href="classgrppi_1_1reduction__info.html#aef31b1435e1378d78b39024fe98445ba">grppi::reduction_info::reduction_info</a></div><div class="ttdeci">reduction_info(E &amp;s, int ws, int off, Identity iden, Combiner comb)</div><div class="ttdef"><b>Definition:</b> patterns.h:55</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
